package com.budwk.app.sqfw.models;

import com.budwk.starter.common.openapi.annotation.ApiModel;
import com.budwk.starter.common.openapi.annotation.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.nutz.dao.entity.annotation.*;
import org.nutz.dao.interceptor.annotation.PrevInsert;

@Data
@Accessors(chain = true)
@Table("shequ.request_failure_log")
@Comment("请求失败日志")
@ApiModel(description = "人员信息")
public class RequestFailureLog {
    @Column
    @Name
    @Comment("id")
    @ApiModelProperty(description = "ID")
    @ColDefine(type = ColType.VARCHAR, width = 32)
    @PrevInsert(els = {@EL("snowflake()")}, nullEffective = true)
    private String id;


    @Column
    @Comment("请求发送人")
    @ApiModelProperty(description = "请求发送人")
    @ColDefine(type = ColType.VARCHAR, width = 32)
    private String userId;

    @Column("method")
    @Comment("服务id")
    @ApiModelProperty(description = "请求方式")
    @ColDefine(type = ColType.VARCHAR, width = 50)
    private String method;

    @Column("url")
    @Comment("请求地址")
    @ApiModelProperty(description = "请求地址")
    @ColDefine(type = ColType.VARCHAR, width = 500)
    private String url;

    @Column("headers")
    @Comment("请求地址")
    @ApiModelProperty(description = "请求头")
    @ColDefine(type = ColType.TEXT)
    private String headers;

    @Column("body")
    @Comment("请求参数")
    @ApiModelProperty(description = "请求头")
    @ColDefine(type = ColType.TEXT)
    private String body;

    @Column("business_type")
    @Comment("业务类型")
    @ApiModelProperty(description = "业务类型")
    @ColDefine(type = ColType.VARCHAR, width = 500)
    private String businessType;


}
